﻿package {

	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import flash.ui.*;
	import flash.net.URLRequest;
	import flash.net.navigateToURL;
	
	public class fangda extends MovieClip {

		public function fangda() {
			// constructor code
			pic.addEventListener(MouseEvent.MOUSE_MOVE,clicking1);
			pic.addEventListener(MouseEvent.MOUSE_OUT, clicking2);

		}
		
		public function clicking1(event:MouseEvent) {
			if (pic.width < 240 && pic.x > -10){
			pic.width = pic.width + 20;
			pic.x = pic.x - 10
			}
			if (pic.height < 240){
			pic.height = pic.height + 20;
			}
		}
		public function clicking2(event:MouseEvent) {
			pic.width = 220;
			pic.height = 220;
			pic.x = 0;
			pic.y = 0
		}

		
	}
}